<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <title>登录页面</title>
    <meta charset="UTF-8">
	<link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <link type="text/css" rel="stylesheet" href="css/style.css" th:href="@{/css/style.css}">
    <script th:src="@{/script/jquery-1.7.2.js}" src="script/jquery-1.7.2.js"></script>
    <script type="text/javascript" src="webjars/jquery/3.5.0/jquery.js"></script>
    <script type="text/javascript" th:inline="javascript">

        /*<![CDATA[*/

        // function login(){
        //     if ([[${msg}]]==null){
        //         return alert([[${msg}]]);
        //     }
        // }

        /*]]>*/
    </script>

<!--    	<script type="text/javascript">-->
<!--    		$(function () {-->
<!--    			$("#sub_btn").click(function () {-->
<!--    				alert("ok");-->
<!--    				var nameText=$("#name").val();-->
<!--    				var passwordText=$("#password").val();-->
<!--    				if (nameText==null && passwordText==null){-->

<!--    					return alert("用户名或密码不能为空");-->
<!--    				}-->

<!--    			})-->
<!--    		})-->
<!--    	</script>-->
</head>
<body>
<nav class="navbar navbar-default navbar-static-top">
	<div class="container ">
		<div class="navbar-header ">

			<a class="navbar-brand" href="#">数据集的查询系统</a>
		</div>
		<div id="navbar" class="navbar-collapse collapse ">
			<ul class="nav navbar-nav navbar-right">
				<li><a th:href="@{/regist}">注册</a></li>
				<li><a th:href="@{/}">返回首页</a></li>
			</ul>
		</div><!--/.nav-collapse -->
	</div>
</nav>
<!--<div id="login_header">-->
<!--</div>-->

<div class="login_banner">

    <div id="l_content">
        <!-- <span class="login_word">欢迎登录</span> -->
    </div>

    <div id="content">
        <div class="login_form">
            <div class="login_box">
                <div class="tit">
<!--                    <a href="regist.html" th:href="@{regist.html}">注册</a>-->
                </div>
                <!--							<div class="msg_cont">-->
                <!--								<b></b>-->
                <!--								&lt;!&ndash; <span class="errorMsg">请输入用户名和密码</span> &ndash;&gt;-->
                <!--							</div>-->
                <div class="form">
                    <form action="login_success.html" th:action="@{/user/user/login}" method="post">
                        <label>用户名称：</label>
                        <input class="itxt" type="text" placeholder="请输入用户名" autocomplete="off" tabindex="1" name="name"
                               id="name"/>
                        <br/>
                        <br/>
                        <label>用户密码：</label>
                        <input class="itxt" type="password" placeholder="请输入密码" autocomplete="off" tabindex="1"
                               name="password" id="password"/>
                        <br/>
                        <br/>
                        <input type="submit" value="登录" id="sub_btn"/>
                    </form>
                </div>

            </div>
        </div>
    </div>
</div>
<div id="bottom">

</div>
</body>
</html>